package com.micaelvesterlund.skeerkie.shared.domain;

import java.util.Arrays;

public class LineUp {
	private Team team;
	private Goalie goalie;
	private Line[] lines;

	public LineUp(Team team, Goalie goalie, Line line1, Line line2, Line line3) {
		this.team = team;
		this.goalie = goalie;
		this.lines = new Line[3];
		lines[0] = line1;
		lines[1] = line2;
		lines[2] = line3;
	}

	public Line[] getLines() {
		return lines;
	}

	public Team getTeam() {
		return team;
	}

	public Goalie getGoalie() {
		return goalie;
	}

	@Override
	public String toString() {
		return "LineUp [team=" + team + ", goalie=" + goalie + ", lines="
				+ Arrays.toString(lines) + "]";
	}

}
